package cn.gson.springboot.model.service;

import cn.gson.springboot.model.mapper.TimelineMapper;
import cn.gson.springboot.model.pojos.Timeline;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimelineService {
    @Autowired
    TimelineMapper timelineMapper;

    public List<Timeline> selectTimelineByCustomerId(Integer custoemrId){
        return timelineMapper.selectTimelineByCustomerId(custoemrId);
    }

    public List<Timeline> selectTimelineByActiveName(Integer customerId,String activeName){
        return timelineMapper.selectTimelineByActiveName(customerId,activeName);
    }
}
